<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<h2 class="aui-gutter-column-lg">{{'common_basic_info_label' | i18n}}</h2>
<lv-group lvGutter='30px' class="aui-gutter-column-xl">
    <i lv-icon="{{slaIcon}}" class="sla-content"></i>
    <lv-group>
        <lv-form [lvLabelColon]="true" class="sla-basic-form">
            <lv-form-item>
                <lv-form-label>{{'common_name_label' | i18n}}</lv-form-label>
                <lv-form-control>
                    <span lv-overflow class="sla-warp">{{sla.name}}</span>
                </lv-form-control>
            </lv-form-item>
            <lv-form-item>
                <lv-form-label>{{'common_application_type_label' | i18n}}</lv-form-label>
                <lv-form-control>
                    <span lv-overflow>
                        {{sla.application | textMap: 'Application_Type'}}
                    </span>
                </lv-form-control>
            </lv-form-item>
        </lv-form>
    </lv-group>
</lv-group>
<aui-sla-info [sla]="sla" [activeIndex]="activeIndex"></aui-sla-info>

<ng-template #headerTpl>
    <div class="aui-operation aui-custom-modal-container">
        <div class="aui-custom-modal-title sla-warp" lv-overflow>
            <sla-type [name]="sla.name"></sla-type>
        </div>
        <div class="aui-custom-modal-operate" *ngIf="!!this.optItems">
            <lv-operation-menu [lvItemsFn]="optCallback" [lvData]="sla">
            </lv-operation-menu>
        </div>
    </div>
</ng-template>